package com.linln.admin.shop.validator;

import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author zsc
 * @date 2020/11/19
 */
@Data
public class ShopsValid implements Serializable {
    @NotEmpty(message = "店铺名称 不能为空")
    private String shopName;
    @NotEmpty(message = "店铺类型不能为空")
    private String shopType;
    @NotEmpty(message = "联系人名称 不能为空")
    private String contactsName;
    @Pattern(regexp = "^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,7,8]|8[0-9]|9[1,8,9])\\d{8}$", message = "手机号码格式不正确")
    private String phone;
    //@Pattern(regexp = "^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,7,8]|8[0-9]|9[1,8,9])\d{8}$", message = "手机号码格式不正确")
    private String sparePhone;
    @NotEmpty(message = "地址不能为空")
    private String address;
    @NotEmpty(message = "位置不能为空")
    private String areaId;


    //@NotEmpty(message = "经度不能为空")
    private String longitude;

    //@NotEmpty(message = "纬度不能为空")
    private String latitude;


    @NotEmpty(message = "营业状态不能为空")
    private String openingStatus;

/*    @NotEmpty(message = "营业时间不能为空")
    private String openingHours;*/

    private String userId;
}